package com.societyGames.action
{
	public class FunctionAction extends Action
	{
		private var _function:Function;
		private var _argArray:Array;
		
		public function FunctionAction(theFunction:Function, ...argArray)
		{
			this._function = theFunction;
			this._argArray = argArray;
		}
		
		public override function startAction():void
		{
			this._function.apply(null, this._argArray);	
			this._completeEventObject.dispatchEvent();
		}
	}
}